const indexRouter = require("./router/index");
const bodyParser = require("body-parser");

require("express")()
  .use(bodyParser.urlencoded({ extended: false }))
  .use(bodyParser.json())
  .use(require("express").static(__dirname + "/src"))
  .use("/", indexRouter)
  .listen(8899, () => {
    console.log("server is running http://localhost:8899");
  });
